{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:headerNew" />
<load href="__PUBLIC__/Js/jqueryUI/jquery-ui-1.8.16.custom.min.js" />
<load href="__PUBLIC__/Css/jqueryUI/jquery-ui-1.8.21.custom.css" />
<load href="__PUBLIC__/Js/Jquery/jquery.form.js" />
<!-- 菜单区域  -->


<div class="titleone">
<h1 class="fLeft titlenav">计量表列表</h1> 

<!-- 查询区域 -->
<form method=post id="frmsearch" action="__URL__">
<div class="search">
<select name="zlist">
  <option value="0">选择区域</option>
  <option value="1">振兴小区</option>

</select>

<div class="searchbg fRig" id="searchbg">

<div class="fLeft"><span id="key"><input type="text" title="名称查询" name="name"  id="topsearch" value="请输入关键字"></span><div class="imgsub" onclick="$('#frmsearch').submit();"></div></div>

</div>

</div>

</div>
</form>
<!-- 主页面开始 -->

<div id="main" class="main full" >
<script type="text/javascript">
			
			
			$(function(){
	       		
				
				// Dialog			

				$('#meterPanel').dialog({

					autoOpen: false,


					width: 640,
					modal : true,
					
					buttons: {

						"更新": function() { 
							$(this).dialog("close"); 

						}, 

						"关闭": function() { 

							$(this).dialog("close"); 

						} 

					}
					

				});

				

				// Dialog Link
								// Dialog Link
				$('#meter_btn').click(function(){
					$('#meterPanel').dialog('open');
					return false;
				});
	

				

				//hover states on the static widgets

				$('#dialog_link, ul#icons li,#btn_link,#meter_btn').hover(

					function() { $(this).addClass('ui-state-hover'); }, 

					function() { $(this).removeClass('ui-state-hover'); }

				);
				
				//focusblur
				 jQuery.focusblur = function(focusid) {
				 var focusblurid = $(focusid);
				 var defval = focusblurid.val();
					 focusblurid.focus(function(){
						 var thisval = $(this).val();
						 if(thisval==defval){
						 $(this).val("");
						 }
						 });
					 focusblurid.blur(function(){
					 var thisval = $(this).val();
					 if(thisval==""){
					 $(this).val(defval);
					 }
					 });
				 
				 };
				 /*下面是调用方法*/
				 $.focusblur("#topsearch");
				
				$('#searchbg').hover(
									 function (){ $(this).addClass('searchbgOver');
									 			 },
									 function (){
											$(this).removeClass('searchbgOver');
										 
									  }
				)
				
				

			

			});

			function addmeter(id){
				
				var keyValue;
				if (id)
				{
					keyValue = id;
				}else {
					keyValue = getSelectCheckboxValues();
				}
				if (!keyValue)
				{
					alert('请选择商业机构！');
					return false;
				}
			
				location.href = URL+"/addMeter/id/"+keyValue;


			}
			
			
			


</script>
<!-- 主体内容  -->



<!--  功能组区域  -->
<div class="operate" >

<a href="#" onclick="commerce_m_add()" id="btn_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>新增商户</a>&nbsp;&nbsp;<a href="#" onclick="edit()" id="btn_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>更改信息</a>&nbsp;&nbsp;<a href="#" onclick="cstop()" id="btn_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>商户停权</a>&nbsp;&nbsp;<a href="#" onclick="addmeter()" id="btn_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>添加计量表</a>&nbsp;&nbsp;<a href="#" onclick="placeadd()" id="btn_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>绑定商网</a>



</div>
<!-- 功能组区域结束 -->

<!-- 列表显示区域  -->
<div id="meterPanel" title="更新用户信息">


</div>


<div class="list" >


<!-- Think 系统列表组件开始 -->
<table id="checkList" class="list" cellpadding=0 cellspacing=0 width="98%">
<tr>
<td height="5" colspan="11" class="topTd" ></td></tr>
<tr class="row" >
<th width="8"><input type="checkbox" id="check" onclick="CheckAll('checkList')"></th><th width="6%">
<a href="javascript:sortBy('id','1','index')" title="按照编号升序排列 ">编号<img src="/rx/Manage/Tpl/Public/images/desc.gif" width="12" height="17" border="0" align="absmiddle"></a></th>
<th>商户名称</th>
<th>面积</th>
<th>商网数量</th>
<th>联系人</th>
<th>电话</th>
<th>添加时间</th>
<th>状态</th>
<th>服务开通情况</th>
<th width="18%">操作</th>
</tr>
<volist name="list" id="vo">
<tr class="row" onmouseover="over(event)" onmouseout="out(event)" onclick="change(event)"  height="22"><td><input type="checkbox" name="key"	value="{$vo.id}"></td><td>{$i}</td><td><a href="javascript:edit('{$vo.id}')">{$vo.name}</a></td><td>{$vo.znum}</td><td>{$vo.storenum}</td><td>{$vo.contact}</td><td>{$vo.tel}</td><td>{$vo.create_time|date="Y-m-d",###}</td><td>{$vo.status|getStatus}</td><td>{$vo.water|getModService=###,0}&nbsp;{$vo.electricity|getModService=###,1}&nbsp;{$vo.property|getModService=###,2}&nbsp;{$vo.wastewater|getModService=###,3}&nbsp;{$vo.heating|getModService=###,4}</td><td><a href="#" id="meter_btn" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-gear"></span>绑定表</a>&nbsp;<a href="#" id="meter_btn" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-gear"></span>绑定商网</a></td></tr>
</volist>
<tr><td height="5" colspan="11" class="bottomTd"></td></tr>
</table>

</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->

<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->

